#ifndef __WRAPPER__
#define __WRAPPER__

#include "../AlgoDLL/CreateurCarte.h" // A changer
#pragma comment(lib, "../Debug/AlgoDLL.lib") // A changer
using namespace System;

#include <string>

namespace Wrapper {
public ref class WrapperAlgo {
private:
CreateurCarte* cc;
public:
	WrapperAlgo(int n) {cc = CreateurCarte_new(n);};
	~WrapperAlgo() {CreateurCarte_delete(cc);};
	int getCase(int x, int y){return cc->getInfoCase(x,y);};
	int getEmplacementVille(int x,int y,int nb){
			int * c = cc->getPropVille(x,y);
			return c[nb];
	};
	void serialiser(char* c){
		cc->serialize(c);
	};
	void deserialiser(char* c){
		cc->deserialize(c);
	};
};
}
#endif